package session.stateless.CRM;

import entity.CRM.Customer;
import entity.CRM.Representative;
import entity.CRM.SaleLead.CustomerType;
import java.util.List;
import javax.ejb.Local;

@Local
public interface CustomerBeanLocal {

    public void convertCustomerFromSaleLead(String reg_num);
    public void createNewCustomer(String name, String reg_num, String address, CustomerType customerType, List<Representative> reps, Long executiveId);

    public List<Customer> getCustomers(Long id);
    public List<Customer> getAllCustomers();
    public Customer findCustomerById(String reg_num);
    public Customer findCustomerByName(String saleLeadName);
    public void updateCustomer(String customerName, String reg_num, String customerAddress, CustomerType customerType);
    public void deleteCustomer(String reg_num);
    
    
    public boolean checkNRIC(String NRIC);
    public boolean checkEmail(String email);
    public boolean checkContactNumber (String contactNumber);
}
